package com.example.flowabledemo.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.example.flowabledemo.entity.MyInfo;
import com.example.flowabledemo.service.MyInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MyInfoController {
    @Resource
    private MyInfoService myInfoService;

    @GetMapping("myInfo")
    public R myInfo(@RequestParam Long id) {
        MyInfo myInfo = myInfoService.getById(id);
        return R.ok(myInfo);
    }
}